<?php
//print_r($webtourscontent);
$flag=0;
if($act=="edit" && $webtourscontent!=null)
{
	$flag=1;
	
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="<?php echo base_url();?>css/reset.css" />
<link rel="stylesheet" href="<?php echo base_url();?>css/text.css" />
<link rel="stylesheet" href="<?php echo base_url();?>css/960_24_col.css" />
 <link rel="stylesheet" href="<?php echo base_url();?>css/jquery-ui-1.8.21.custom.css" />
 <link rel="stylesheet" href="<?php echo base_url();?>css/style.css" />
 <link rel="stylesheet" href="<?php echo base_url();?>css/faary.css" type="text/css" />
 <script type="text/javascript" src="<?php echo base_url();?>js/jquery-1.7.2.min.js"></script>
 <script type="text/javascript" src="<?php echo base_url();?>js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/scripts.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/jquery.validate.js"></script>
<style>
.name{width:500px;}
.price{width:50px}
</style>
<script>
	$(function()
	{
		if($("input[name=with_room]").is(":checked"))
		{
			$(".moredayform").show();
			$(".onedayform").hide();
		}else
		{
			$(".onedayform").show();
			$(".moredayform").hide();
		}

		$("input[name=with_room]").click(
				function()
					{
					if($("input[name=with_room]").is(":checked"))
					{
						$(".moredayform").show();
						$(".onedayform").hide();
					}else
					{
						$(".onedayform").show();
						$(".moredayform").hide();
					}		

					});
	})

</script>
</head>

<body>
	
	<div class="principal container_24">
		
		<!--logo-->
		<div class="logo grid_24">
			<div class="grid_1">&nbsp;</div>
			<div class="grid_4 logoimage"><img src="<?php echo base_url();?>img/logo.png" height="90"></div>
			<div class="logout grid_5"><a href="index.php?loginprocess/loginout"><img src="<?php echo base_url();?>img/bt_logout.jpg"/></a></div>
		</div><!-- end logo-->
		
		<!--menupricipal-->
		<div class="menuprincipal grid_24">
			<a class="yearlist " href="index.php?webctrl/web_adminmenu">Back to List </a>
		</div>
		<!-- end menupricipal-->
				
			<div class="descprincipal grid_22">
				ADD/Edit Group travel
			</div>
			
			<div class="grid_24 listcontent">
				<h1>ADD/Edit Group Travel</h1>
				<div class="grid_22 list">
		
<?php if ($flag ==1){?>
<form method="post" action="index.php?webctrl/sub_editwebtours" class="iform grid_18 formbus" >
<input type="hidden" name="idweb_travel" value="<?php echo $webtourscontent[0]['idweb_travel'] ?>"/>
<input type="hidden" name="idwith_room_price" value="<?php echo $webtourscontent[0]['idwith_room_price'] ?>"/>
<?php }else{?>
<form method="post" action="index.php?webctrl/sub_webtours" class="iform grid_18 formbus" >
<?php } ?>	
<div id="imessageOK">Thank you! Message Sent!</div>
<div id="imessageERROR">ERROR: Message Not Sent!</div>
<ul class="">
<li class="iheader">Adit/Edite Group Travel</li>
<li><label for="hotelinfo">*  Select Group</label>
<select name="web_group_idweb_group">
	<?php foreach ($listgroup as $lg){?>
		
		<option <?php if ($flag==1&& $lg['idweb_group']== $webtourscontent[0]['web_group_idweb_group']){?> selected<?php }?>  value="<?php echo $lg['idweb_group'];?>"><?php echo $lg['name_en'];?></option>
	<?php }?>
</select>
</li>
<li><label for="hotelinfo">*  Name -En</label><input type="text"  class="name" name="name_en"  value="<?php if($flag==1) echo $webtourscontent[0]['name_en'] ;?>"/></li>
<li><label for="hotelinfo">* Name -Fr</label><input type="text" class="name"name="name_fr" value="<?php if($flag==1) echo $webtourscontent[0]['name_fr'] ;?>"/></li>
<li><label for="hotelinfo">* Name -Cn</label><input type="text" class="name" name="name_cn"  value="<?php if($flag==1) echo $webtourscontent[0]['name_cn'] ;?>"/></li>
<li><label for="hotelinfo">* Subtitle -En</label><input type="text"  class="name" name="subtitle_en"  value="<?php if($flag==1) echo $webtourscontent[0]['subtitle_en'] ;?>"/></li>
<li><label for="hotelinfo">* Subtitle -Fr</label><input type="text"  class="name" name="subtitle_fr"  value="<?php if($flag==1) echo $webtourscontent[0]['subtitle_fr'] ;?>"/></li>
<li><label for="hotelinfo">* Subtitle -Cn</label><input type="text"  class="name" name="subtitle_cn"  value="<?php if($flag==1) echo $webtourscontent[0]['subtitle_cn'] ;?>"/></li>


<li><label for="hotelinfo">* Description -En</label><textarea class="itextarea" name="desc_en" id="HotelInfo"><?php if($flag==1) echo $webtourscontent[0]['desc_en'] ;?></textarea></li>
<li><label for="hotelinfo">*  Description -Fr</label><textarea class="itextarea"  name="desc_fr" id="HotelInfo"><?php if($flag==1) echo $webtourscontent[0]['desc_fr'] ;?></textarea></li>
<li><label for="hotelinfo">*  Description -Cn</label><textarea class="itextarea" name="desc_cn" id="HotelInfo"><?php if($flag==1) echo $webtourscontent[0]['desc_cn'] ;?></textarea></li>
<li><label for="hotelinfo">* Regular price $</label><input type="text"   name="price_r"  value="<?php if($flag==1) echo $webtourscontent[0]['price_r'] ;?>"/></li>
<li><label for="hotelinfo">* Reduce Price  $</label><input type="text"  name="price_red"  value="<?php if($flag==1) echo $webtourscontent[0]['price_red'] ;?>"/></li>
<li><label for="hotelinfo">* Available Place</label><input type="text"   name="place_dispo"  value="<?php if($flag==1) echo $webtourscontent[0]['place_dispo'] ;?>"/></li>
<li><label for="hotelinfo">* Booking Code</label><input type="text"   name="bookingcode"  value="<?php if($flag==1) echo $webtourscontent[0]['bookingcode'] ;?>"/></li>
<li><label for="hotelinfo">* With room </label><input type="checkbox"   name="with_room"  value="1" <?php if($flag==1&&$webtourscontent[0]['with_room']==1) {?>checked<?php } ?>/></li>
<li>
					<table class="moredayform" width="99%" cellspacing="1" cellpadding="1" border="0" align="left" class="table_num">
                                      <tbody><tr>
                                        <th align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblOccupancy">Tour Frais (Occupancy)</span></th>
                                        <th align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblQuad">Quad.</span></th>
                                        <th align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblTriple">Triple</span></th>
                                        <th align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblDouble">Double</span></th>
                                        <th align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblSingle">Simple</span></th>
                                        <th align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblChild">Enfant(2-12)</span></th>
                                       
                                      </tr>
                                      <tr>
                                        <td height="25" align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblFee">Régulière</span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblQuadPrice"><input  class= "price" type="text" name="reg_1" value="<?php if($flag==1) echo $webtourscontent[0]['reg_1'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblTriplePrice"><input class= "price" type="text" name="reg_2" value="<?php if($flag==1) echo $webtourscontent[0]['reg_2'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblDoublePrice"><input class= "price" type="text" name="reg_3" value="<?php if($flag==1) echo $webtourscontent[0]['reg_3'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblSinglePrice"><input class= "price" type="text" name="reg_4" value="<?php if($flag==1) echo $webtourscontent[0]['reg_4'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblChildPrice"><input class= "price" type="text" name="reg_child" value="<?php if($flag==1) echo $webtourscontent[0]['reg_child'] ;?>"/></span></td>
                                        
                                      </tr>
                                      <tr>
                                        <td height="25" align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblFeeOnline">En Ligne</span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblQuadPriceOnline"><input class= "price" type="text" name="line_1" value="<?php if($flag==1) echo $webtourscontent[0]['line_1'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblTriplePriceOnline"><input class= "price" type="text" name="line_2" value="<?php if($flag==1) echo $webtourscontent[0]['line_2'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblDoublePriceOnline"><input class= "price" type="text" name="line_3" value="<?php if($flag==1) echo $webtourscontent[0]['line_3'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblSinglePriceOnline"><input class= "price" type="text" name="line_4" value="<?php if($flag==1) echo $webtourscontent[0]['line_4'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblChildPriceOnline"><input class= "price" type="text" name="line_child" value="<?php if($flag==1) echo $webtourscontent[0]['line_child'] ;?>"/></span></td>
                                       
                                      </tr>
                                      <tr>
                                        <td height="25" align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblFeeSpecial">membre</span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblQuadPriceSpecial"><input class= "price" type="text" name="member_1" value="<?php if($flag==1) echo $webtourscontent[0]['member_1'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblTriplePriceSpecial"><input class= "price" type="text" name="member_2" value="<?php if($flag==1) echo $webtourscontent[0]['member_2'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblDoublePriceSpecial"><input class= "price" type="text" name="member_3" value="<?php if($flag==1) echo $webtourscontent[0]['member_3'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblSinglePriceSpecial"><input class= "price" type="text" name="member_4" value="<?php if($flag==1) echo $webtourscontent[0]['member_4'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblChildPriceSpecial"><input class= "price" type="text" name="member_child" value="<?php if($flag==1) echo $webtourscontent[0]['member_child'] ;?>"/></span></td>
                                      
                                      </tr>
                                    </tbody>
                     </table>
                     
                     
       				<table class="onedayform" width="99%" cellspacing="1" cellpadding="1" border="0" align="left" class="table_num">
                                      <tbody><tr>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblPersonType"></span></td>
                                        <td height="25" align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblRegular">Régulière</span></td>
                                        <td height="25" align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblOnline">En Ligne</span></td>
                                        <td height="25" align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblSpecial">membre</span></td>
                                      </tr>
                                      <tr>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblAdultType">Adulte</span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblAdultPrice0"><input class= "price" type="text" name="reg_ad" value="<?php if($flag==1) echo $webtourscontent[0]['reg_ad'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblAdultPriceOnline0"><input class= "price" type="text" name="line_ad" value="<?php if($flag==1) echo $webtourscontent[0]['line_ad'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblAdultPriceSpecial0"><input class= "price" type="text" name="member_ad" value="<?php if($flag==1) echo $webtourscontent[0]['member_ad'] ;?>"/></span></td>
                                      </tr>
                                      <tr>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblChildType">Enfant(2-12)</span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblChildPrice0"><input class= "price" type="text" name="reg_child_1" value="<?php if($flag==1) echo $webtourscontent[0]['reg_child_1'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblChildPriceOnline0"><input class= "price" type="text" name="line_child_1" value="<?php if($flag==1) echo $webtourscontent[0]['line_child_1'] ;?>"/></span></td>
                                        <td align="center"><span id="ctl00_ctl00_Content_CenterPane_ctl00_lblChildPriceSpecial0"><input class= "price" type="text" name="member_child_1" value="<?php if($flag==1) echo $webtourscontent[0]['member_child_1'] ;?>"/></span></td>
                                      </tr>
                                    </tbody></table>              

</li>
<li><label>&nbsp;</label><input type="submit" class="ibutton"  name="SendaMessage" id="SendaMessage" value="Submit" /></li>
</ul></form>
				</div>
			</div>
		
	</div><!--end principal-->
</body>
</html>